import request from '@/utils/request'

const systemApi = {
  FinanceStatistics: '/admin/statistics/finance', // 平台统计
  MSGStatistics: '/admin/statistics/msg', // 财务统计
  ServiceStatistics: '/admin/statistics/serviceInfo', // 财务统计

  
  UpToken: '/admin/qn/upToken',
  ServiceUpToken: '/service/getUpToken',
  

  BlackListAdd: '/admin/blackList/add',
  BlackListList: '/admin/blackList/list',
  BlackListUpdate: '/admin/blackList/update',

  // 平台设置
  SettingUpdate: '/admin/setting/update',
  SettingGet: '/admin/setting/get',


  
  
}

export function getFinanceStatistics(parameter) {
  return request({
    url: systemApi.FinanceStatistics,
    method: 'post',
    data: parameter,
  })
}

export function getMSGStatistics(parameter) {
  return request({
    url: systemApi.MSGStatistics,
    method: 'post',
    data: parameter,
  })
}
export function getServiceStatistics(parameter) {
  return request({
    url: systemApi.ServiceStatistics,
    method: 'post',
    data: parameter,
  })
}



export function upToken(parameter) {
  return request({
    url: systemApi.UpToken,
    method: 'post',
    data: parameter,
  })
}


export function serviceUpToken(parameter) {
  return request({
    url: systemApi.ServiceUpToken,
    method: 'post',
    data: parameter,
  })
}


export function blackListAdd(parameter) {
  return request({
    url: systemApi.BlackListAdd,
    method: 'post',
    data: parameter,
  })
}

export function blackListList(parameter) {
  return request({
    url: systemApi.BlackListList,
    method: 'post',
    data: parameter,
  })
}
export function blackListUpdate(parameter) {
  return request({
    url: systemApi.BlackListUpdate,
    method: 'post',
    data: parameter,
  })
}

export function settingUpdate(parameter) {
  return request({
    url: systemApi.SettingUpdate,
    method: 'post',
    data: parameter,
  })
}
export function settingGet(parameter) {
  return request({
    url: systemApi.SettingGet,
    method: 'post',
    data: parameter,
  })
}



